package com.example.administrator.reader.utils;


import com.example.administrator.reader.entity.Chapter;

public class Constants {
    public static final String SERVER = "http://192.168.1.195:8080/novel/";
    public static final String IMAGE_ADDR = SERVER+"source_images/";
    public static final String CONTENT_ADDR = SERVER + "content/";
    public static final int OK = 1;
    public static final int ERROR = 2;

    public static final int requestCode = 100;
    public static final int resultCode = 100;

    public static final int requestCodeLogout = 101;     // 注销登录
    public static final int resultCodeLogout = 101;     // 注销登录

    public static String getLoginStatusUrl(String account, String password){

        return  "loginUser.shtml" + "?" + "account=" + account + "&" + "password=" + password;
    }

    public static String getRegisterStatusUrl(String account, String password){

        return  "registerUser.shtml" + "?" + "account=" + account + "&" + "password=" + password;
    }

    public static String getAddBookUrl(String account, int novelId){

        return  "addBook.shtml" + "?" + "account=" + account + "&" + "novelId=" + novelId;
    }

    //小说的主要信息
    //ID
    public static int novelId = 1;
    //当前是第几章
    public static int cIndex = 1;
    //一共多少章
    public static int chapterCount = 1;
    //当前章节的小说内容
    public static Chapter curChapter = null;

}
